package com.jingdianjichi.oss.service;

import com.jingdianjichi.oss.adapter.StorageAdapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author xf
 * @Aate 2024/3/5 下午 02:30
 * @Version v1.0.0
 * @Description : TODO: 一个对oss服务初步的判断管理，与storageService做交互
 */
@Service
public class FileService {

    //声明参数，不是注入。
    private final StorageAdapter storageService;

    public FileService(StorageAdapter storageService) {
        this.storageService = storageService;
    }


    //    通过构造函数的方式做交互
    public List<String> getAllBucket() {
        return storageService.getAllBucket();
    }
}